<?php 

echo form_open('valideur/create');

// an array of the fields in the student table
$field_array = array('nom','prenom','email','tel');
echo '<table border="1" BORDERCOLOR=#5EA600 style="margin-bottom:30px;" cellpadding="3" cellspacing="0">';
foreach($field_array as $field)
{
  echo '<tr><td  bgcolor="#66cc44">' . $field.'</td>';
  echo '<td  bgcolor="#dddddd">'.form_input(array('name' => $field)) . '</td></tr>';
}
echo '</table>';
// not setting the value attribute omits the submit from the $_POST array
echo form_submit('', 'Add','style="background-color:#66cc44;border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;"'); 

echo form_close();

?>
